home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
sled11.zip
/
SLED.DOC
< prev
next >
Wrap
Text File
|
1988-09-09
|
29KB
|
579 lines
SLED and SLHED
SLED and SLHED are small, fast text editors for the IBM PC
(registered TM of International Business Machines Corp.) and close
compatibles. They are designed for program, batch and data file
editing, and simple word processing. They can read and write a
variety of file formats and are useful as file conversion
utilities. Many files can be edited at once, limited only by
available memory.
There are two versions of the editor: SLED, for monochrome and
color monitors running in text mode, and SLHED, that takes
advantage of the 90 columns and 43 lines of text available using
the graphics mode of the Hercules Graphics adapter (registered TM
of Hercules Computer Technology).
SLED, SLHED and the document you are reading are all Copyright
1987 by:
Sam Wilmott
Suite 1503, 2201 Riverside Drive
Ottawa, Ontario, Canada K1H 8K9
You are welcome to use them and pass copies of them along to
others as long as:
(1) you always keep SLED, SLHED and this document together,
(2) you don't give anyone copies of the programs or of this
document that have been modified in any way, and
(3) you don't charge anyone for copies of the programs or of the
documentation (other than to cover reasonable handling,
packaging and postal costs).
If you find yourself using SLED or SLHED regularly then please
remember that I didn't get them for free. Support the development
of cheap and useful software by sending $15 to the above address.
For $15 I can't afford to send you a leather-bound copy of the
manual or guarantee that there will be a "version 2" of the
editor. You don't need a manual or "quick reference card" close
at hand to use the editors. Both SLED and SLHED have been in use
for over six months by a variety of people and no problems have
been found with the programs. If you send the $15 you will,
however, be on my list of nice people who should be told about any
problems that are found with the editors or any new version.
SLED and SLHED Page 2
GETTING STARTED
You run the editor by entering the name of the editor at the DOS
prompt, followed by the files to be edited and the options to be
used. An MS-DOS machine that is not a close copy of an IBM PC may
require use of the "slow" option. Refer to using /S on the
command line in the "SCREEN COLORS" section. You will also want
to look at the "OPTIONS" and "SCREEN COLORS" sections for all the
ways in which the editor can be configured.
To start with, here are three essential commands:
Alt-H Display a list of all the commands. You can return to
editing by using the escape key, or enter any command
or text character while still viewing the help page.
Alt-Q Discard from memory all files being edited, terminate the
editor, and return to DOS. See F7 for a less drastic exit.
Esc The escape key will always terminate the current
operation. If you are being prompted for a file name or a
search string, Esc will get you out of it. It is always
safe to press Esc, as it doesn't do anything itself.
MOVING THE CURSOR AROUND AND SIMPLE EDITING
Home
Move the cursor to the start of the line.
End
Move the cursor to the end of the line.
PgUp
Move the cursor up 22 lines.
PgDn
Move the cursor down 22 lines.
Del
Delete the character under the cursor, or if at the
end of a line, join the line with the cursor on it with
the one following.
Backspace
Delete the character to the left of the cursor, or if at
the start of a line, join the line with the previous one.
Tab Move the cursor right to the next tab stop (usually every
8 columns).
Shift-Tab
Move the cursor left to the previous tab stop.
Enter
Put a line break where the cursor is, and put the cursor
at the start of the new line.
Up-cursor
Move the cursor one line up in the file.
SLED and SLHED Page 3
Down-cursor
Move the cursor one line down in the file.
Left-cursor
Move the cursor one character left on the line.
Right-cursor
Move the cursor one character right on the line.
Ctrl-Home
Move the cursor to the start of the file.
Ctrl-End
Move the cursor to the end of the file.
Ctrl-PgUp
Move the cursor to the top of the screen.
Ctrl-PgDn
Move the cursor to the bottom of the screen.
Ctrl-Right-cursor
Move the cursor to the right edge of the screen. If the
cursor is already at the right edge of the screen, scroll
the whole screen 60 columns right.
Ctrl-Left-cursor
Move the cursor to the left edge of the screen. If the
cursor is already at the left edge of the screen, scroll
the whole screen 60 columns left.
Ctrl-Backspace
Delete the line with the cursor on it.
Ctrl-Enter
Duplicate the line with the cursor on it and place the
cursor on the new line.
Alt-J Join the line with the cursor on it with the following.
Alt-K Erase the rest of the line starting at the cursor.
Alt-S Split the line at the cursor, leaving the cursor in place.
Alt-Z Move the cursor to where it was before the last Ctrl-Home,
Ctrl-End, Alt-B, Alt-T or search.
F6 Make the line with the cursor the screen's middle line.
F9 Treat the next key typed as text, even if it is an editor
command.
F10 Insert an empty line after the one with the cursor on it
and move the cursor to the start of the new line. This is
equivalent to pressing End and then Enter.
SLED and SLHED Page 4
SEARCHING AND REPLACING
F2 starts a search. It asks for what is to be found. If you end
your entry with Enter, it is immediately searched for and the
cursor is moved to the first instance found. If you end your
entry with either F1 or F2, you are then prompted for a
replacement. If you end the replacement text with Enter, the
search text is searched for, and if it is found, you are asked to
press F2 to confirm that you want to make the replacement. If the
replacement is ended with F1 or F2 again, all instances of the
search text are replaced by the replacement, from the cursor
position to the end of the file.
Once a search has been started using F2, F1 can be used to repeat
or continue the previous search or search/replace. When you are
asked to press F2 to confirm a replacement, pressing any other key
abandons the search and does what that key would normally do.
In either case, pressing F1 will again resume the search.
If a multiple search/replace seems to be taking a long time, it
can be stopped by pressin